package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评价对象 app_review
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
public class AppReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价记录的唯一标识符 */
    private Long reviewId;

    /** 执行收藏操作的用户ID */
    private Long userId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    private String avatar;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /** 被收藏的文物ID */
    private Long artifactId;

    /** 文物的名称 */
    @Excel(name = "文物的名称")
    private String artifactName;

    /** 文物照片 */
    @Excel(name = "文物照片")
    private String photoUrl;

    /** 评分（1-5星） */
    @Excel(name = "评分", readConverterExp = "1=-5星")
    private Integer rating;

    /** 评价文本 */
    @Excel(name = "评价文本")
    private String reviewText;

    /** 评价日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewDate;

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setArtifactId(Long artifactId) 
    {
        this.artifactId = artifactId;
    }

    public Long getArtifactId() 
    {
        return artifactId;
    }
    public void setArtifactName(String artifactName) 
    {
        this.artifactName = artifactName;
    }

    public String getArtifactName() 
    {
        return artifactName;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setRating(Integer rating) 
    {
        this.rating = rating;
    }

    public Integer getRating() 
    {
        return rating;
    }
    public void setReviewText(String reviewText) 
    {
        this.reviewText = reviewText;
    }

    public String getReviewText() 
    {
        return reviewText;
    }
    public void setReviewDate(Date reviewDate) 
    {
        this.reviewDate = reviewDate;
    }

    public Date getReviewDate() 
    {
        return reviewDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("email", getEmail())
            .append("mobile", getMobile())
            .append("artifactId", getArtifactId())
            .append("artifactName", getArtifactName())
            .append("photoUrl", getPhotoUrl())
            .append("rating", getRating())
            .append("reviewText", getReviewText())
            .append("reviewDate", getReviewDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
